package com.zbl.zblproject.erp.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zbl.zblproject.erp.entity.*;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @author youlanqiang
 * @version 1.0
 * @date 2018/10/23
 */
public interface ErpTableService {

    /**
     * 查询时间内的出入库情况带有分页
      * @param start
     * @param end
     * @return
     */
    IPage<ErpStockTable> getStockTableByTime(LocalDateTime start,
                                             LocalDateTime end,
                                             int current,
                                             int size);

    IPage<ErpStockTable> getStockTableByTimeAndMode(LocalDateTime start,
                                             LocalDateTime end,
                                             int current,
                                             int size, int mode);

    /**
     * 查询时间内所有的入库情况
     * @param start
     * @param end
     * @return
     */
    List<ErpStockTable> getAllStockTable(LocalDateTime start, LocalDateTime end);

    IPage<ErpGoods>  getZombieGoodsByLastTime(LocalDateTime time, int current, int size);

    /**
     * 获取所有欠缺货表单
     * 按门店和产家来分
     * @return
     */
    ErpOweTableContainer getAllOweTable();

    List<ErpOrderItem> getOrderItemById(int orderId);

}
